<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/20
 * Time: 17:24
 */

namespace app\index\model;


use think\Model;

class ShopEvaluate extends Model
{

    protected $table = "duck_shop_evaluate";
    protected $autoWriteTimestamp = true;

    public function shop(){
        return $this->belongsTo('ShopList','shop_id','id');
    }


    public function user(){
        return $this->hasOne('Member','id','user_id');
    }

}